import 'package:package_info/package_info.dart';

import '../constant/constant.dart';

/// todo：获取app信息
getAppName() async{
  PackageInfo packageInfo = await PackageInfo.fromPlatform();
  AppInfo.appName = packageInfo.appName;
  AppInfo.buildNumber = packageInfo.buildNumber;
  AppInfo.packageName = packageInfo.packageName;
  AppInfo.version = packageInfo.version;
}